﻿namespace Sidvall.Office
{
	public class WorksheetRow : Sidvall.Office.IWorksheetRow
	{
		#region Public Members

		#region CellFormat

		private IWorksheetCellFormat _CellFormat;
		public IWorksheetCellFormat CellFormat
		{
			get
			{
				if (_CellFormat == null)
					_CellFormat = new WorksheetCellFormat(this.InternalWorksheetRow.CellFormat);
				return _CellFormat;
			}
		}

		#endregion

		#region ToString

		public override string ToString()
		{
			return "WorksheetRow - Sidvall.Office.IG";
		}

		#endregion

		#endregion
		#region Private Members

		internal Infragistics.Documents.Excel.WorksheetRow InternalWorksheetRow { get; set; }

		#endregion
		#region Constructors

		public WorksheetRow(Infragistics.Documents.Excel.WorksheetRow worksheetRow)
		{
			this.InternalWorksheetRow = worksheetRow;
		}

		#endregion
	}
}
